package ttp.service;

import java.sql.SQLException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;

import ttp.dao.TtpDAO;

public class Service {
	private TtpDAO dao;

	public Service(TtpDAO dao) {
		super();
		this.dao = dao;
	}
	
	public int selectTreeStop() throws Exception{
		return dao.selectTreeStop();
	}
	public int selectCrushStop() throws Exception{
		return dao.selectCrushStop();
	}
	public int selectChemicalStop() throws Exception{
		return dao.selectChemicalStop();
	}
	public int selectDryingStop() throws Exception{
		return dao.selectDryingStop();
	}
	public int selectCuttingStop() throws Exception{
		return dao.selectCuttingStop();
	}
	
	
	public int updateTreeStop0() throws Exception{
		return dao.updateTreeStop0();
	}
	public int updateTreeStop1() throws Exception{
		return dao.updateTreeStop1();
	}
	//----------------------------------------
	public int selectCrushStatus() throws Exception{
		return dao.selectCrushStatus();
	}
	public int updateCrushStatus0() throws Exception{
		return dao.updateCrushStatus0();
	}
	public int updateCrushStatus1() throws Exception{
		return dao.updateCrushStatus1();
	}
	public int updateCrushStop1() throws Exception{
		return dao.updateCrushStop1();
	}
	public int updateCrushStop0() throws Exception{
		return dao.updateCrushStop0();
	}
	//-------------------------------------
	public int selectChemicalStatus() throws Exception{
		return dao.selectChemicalStatus();
	}
	public int updateChemicalStatus0() throws Exception{
		return dao.updateChemicalStatus0();
	}
	public int updateChemicalStatus1() throws Exception{
		return dao.updateChemicalStatus1();
	}
	public int updateChemicalStop1() throws Exception{
		return dao.updateChemicalStop1();
	}
	public int updateChemicalStop0() throws Exception{
		return dao.updateChemicalStop0();
	}
	//-----------------------------------
	public int selectDryingStatus() throws Exception{
		return dao.selectDryingStatus();
	}
	public int updateDryingStatus0() throws Exception{
		return dao.updateDryingStatus0();
	}
	public int updateDryingStatus1() throws Exception{
		return dao.updateDryingStatus1();
	}
	public int updateDryingStop1() throws Exception{
		return dao.updateDryingStop1();
	}
	public int updateDryingStop0() throws Exception{
		return dao.updateDryingStop0();
	}
	//---------------------------------
	public int selectCuttingStatus() throws Exception{
		return dao.selectCuttingStatus();
	}
	public int updateCuttingStatus0() throws Exception{
		return dao.updateCuttingStatus0();
	}
	public int updateCuttingStatus1() throws Exception{
		return dao.updateCuttingStatus1();
	}
	public int updateCuttingStop1() throws Exception{
		return dao.updateCuttingStop1();
	}
	public int updateCuttingStop0() throws Exception{
		return dao.updateCuttingStop0();
	}
	
}
